package com.qianhui.pojo;

import java.sql.Timestamp;

/**
 * Cart entity. @author MyEclipse Persistence Tools
 */

public class Cart implements java.io.Serializable
{

    // Fields

    private String cartId;
    private String goodsId;
    private Integer goodsNumber;
    private String buyerId;
    private Timestamp cartAddTime;

    // Constructors

    /**
     * default constructor
     */
    public Cart()
    {
    }

    /**
     * full constructor
     */
    public Cart(String cartId, String goodsId, Integer goodsNumber, String buyerId, Timestamp cartAddTime)
    {
        this.cartId = cartId;
        this.goodsId = goodsId;
        this.goodsNumber = goodsNumber;
        this.buyerId = buyerId;
        this.cartAddTime = cartAddTime;
    }

    // Property accessors

    public String getCartId()
    {
        return this.cartId;
    }

    public void setCartId(String cartId)
    {
        this.cartId = cartId;
    }

    public String getGoodsId()
    {
        return this.goodsId;
    }

    public void setGoodsId(String goodsId)
    {
        this.goodsId = goodsId;
    }

    public Integer getGoodsNumber()
    {
        return this.goodsNumber;
    }

    public void setGoodsNumber(Integer goodsNumber)
    {
        this.goodsNumber = goodsNumber;
    }

    public String getBuyerId()
    {
        return this.buyerId;
    }

    public void setBuyerId(String buyerId)
    {
        this.buyerId = buyerId;
    }

    public Timestamp getCartAddTime()
    {
        return this.cartAddTime;
    }

    public void setCartAddTime(Timestamp cartAddTime)
    {
        this.cartAddTime = cartAddTime;
    }

    @Override
    public String toString()
    {
        return "Cart [cartId=" + cartId + ", goodsId=" + goodsId + ", goodsNumber=" + goodsNumber + ", buyerId=" + buyerId + ", cartAddTime=" + cartAddTime + "]";
    }

}